<template>
	<view class="wrap">
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: '',
				src: ''
			}
		},
		onLoad(options) {
			this.text = options.text
			uni.setNavigationBarTitle({
				title: this.text
			})
			this.text === '服务条款' ? this.src = 'https://nfp.y2t.com/doc/220119_fwxieyi.html' : this.src = 'https://nfp.y2t.com/doc/220119_ybdxieyi.html'
		},
		methods: {}
	}
</script>

<style lang="scss">
	.wrap {
		padding: 32rpx;
	}
</style>
